<?php
namespace app\platform\controller;
use app\BaseController;
use app\common\logic\TokenLogic;
use app\common\model\ImgModel;
use app\common\helper\upload\UploadHelper;
use think\Exception;
class Upload extends BaseController{
   
    public function upload(){
        $UploadHelper = new UploadHelper();
        try{
            $res = $UploadHelper->upload();
            return  $this->success([
                'url' => $res
            ]);
        } catch (Exception $e){
            return  $this->error($e->getMessage());
        }
    }
}
